#include<iostream>
#include<stdio.h>
using namespace std;

const unsigned long BUFSIZE = 1024;

int main()
{
    char buf[BUFSIZE];
    int a  = 100;
    sprintf((char *)buf, "%u(0x%08X)", a, a);
    cout << "a = " << buf <<endl;
    return 0;

}
